package com.cz.cloud.controll;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.cz.cloud.dto.User;

@RestController
@RequestMapping("user")
public class UserControll {
	
	
	@RequestMapping("/userList")
	public String userList(User user) {
		return "serviceB"+user.getUserName()+"#############################"+user.getAge();
	}
	
	@RequestMapping(value="/puserList",method=RequestMethod.POST)
	public String puserList(User user) {
		return "serviceB"+user.getUserName()+"#############################"+user.getAge();
	}
}
